import Vue from 'vue';
import VueRouter from 'vue-router'

Vue.use(VueRouter);

export default new VueRouter({
    mode:'history',
    // 注册路由
    routes:[
        {
            path:'/home',//  /代表的是根目录 路径中最好不要出现大写字符
            name:'home',//路由的名字
            component:()=> import ("../views/Home.vue")
        },
        {
            path:'/shequ',
            name:'shequ',
            component:()=> import ("../views/Shequ.vue")
        },
        {
            path:'/',
            redirect:'/home'
        }
    ]
})
